home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Super PC 34
/
Super PC 34 (Shareware).iso
/
spc
/
UTIL
/
DJGPP2
/
V2
/
DJTST200.ZIP
/
tests
/
libc
/
dos
/
process
/
spawnvp.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1995-11-13
|
292 b
|
21 lines
#include <stdio.h>
#include <process.h>
void
p(int argc, char **argv)
{
int i;
for (i=1; i<argc; i++)
printf(" %s", argv[i]);
printf("\n");
}
int
main(int argc, char **argv)
{
p(argc, argv);
spawnvp(P_WAIT, argv[1], argv+1);
p(argc, argv);
return 0;
}